//客户
const prefixUrl = '/web/customerInfoFlow'
import request from '@/utils/request'

// 临时保存
export function save(data, params) {
  return request({
    url: prefixUrl + '/save',
    method: 'post',
    data: data,
    content_type: 'json',
    params
  })
}

// 临时保存
export function saveAndStartFlow(data, params) {
  return request({
    url: prefixUrl + '/saveAndStartFlow',
    method: 'post',
    data: data,
    content_type: 'json',
    params
  })
}

//列表
export function page(params) {
  return request({
    url: prefixUrl + '/page',
    method: 'get',
    params
  })
}

//获取客户信息
export function one(params) {
  return request({
    url: prefixUrl + '/one',
    method: 'get',
    params
  })
}

//获取客户信息
export function draftsIsNull() {
  return request({
    url: prefixUrl + '/draftsIsNull',
    method: 'get'
  })
}

//判断客户基本信息是否修改
export function equalsData(data) {
  return request({
    url: prefixUrl + '/equalsData',
    method: 'post',
    data: data,
    content_type: 'json'
  })
}

//审核
export function check(data, params) {
  return request({
    url: prefixUrl + '/check',
    method: 'post',
    data: data,
    content_type: 'json',
    params
  })
}

//获取页面按钮的角标
export function getFlowCheckCount(params) {
  return request({
    url: prefixUrl + '/getFlowCheckCount',
    method: 'get',
    params
  })
}

//获取当前人是否是最后一个操作人
export function getFlowIsEnd(params) {
  return request({
    url: prefixUrl + '/getFlowIsEnd',
    method: 'get',
    params
  })
}

//删除流程
export function remove(params) {
  return request({
    url: prefixUrl + '/remove',
    method: 'post',
    params
  })
}

//彻底删除流程
export function actualDelete(params) {
  return request({
    url: prefixUrl + '/actualDelete',
    method: 'post',
    params
  })
}
// 获取历史对接人
export function getHistoryUser(params) {
  return request({
    url: prefixUrl + '/getHistoryUser',
    method: 'get',
    params
  })
}

